"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* @Author: weiwang
* @Date:   2018-11-27 20:04:43
* @Last Modified by:   weiwang
* @Last Modified time: 2018-11-27 20:04:43
*/
const taro_1 = require("@tarojs/taro");
// import { IProps, IState } from './schemas'
class default_1 extends taro_1.Component {
    constructor(props) {
        super(props);
        this.login = () => {
            console.log('login');
            taro_1.default.login()
                .then(success => {
                console.log(success, 'success');
            })
                .catch(error => {
                console.log(error, 'error');
            });
        };
    }
    componentWillReceiveProps(nextProps) {
        console.log(this.props, nextProps);
    }
    componentWillMount() { }
    componentWillUnmount() { }
    componentDidShow() { }
    componentDidHide() { }
}
exports.default = default_1;
//# sourceMappingURL=index.jsx.map